package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FaceDatabaseMapper;
import com.ruoyi.system.domain.FaceDatabase;
import com.ruoyi.system.service.IFaceDatabaseService;

/**
 * 人脸库Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-22
 */
@Service
public class FaceDatabaseServiceImpl implements IFaceDatabaseService 
{
    @Autowired
    private FaceDatabaseMapper faceDatabaseMapper;

    /**
     * 查询人脸库
     * 
     * @param id 人脸库主键
     * @return 人脸库
     */
    @Override
    public FaceDatabase selectFaceDatabaseById(Long id)
    {
        return faceDatabaseMapper.selectFaceDatabaseById(id);
    }

    /**
     * 查询人脸库列表
     * 
     * @param faceDatabase 人脸库
     * @return 人脸库
     */
    @Override
    public List<FaceDatabase> selectFaceDatabaseList(FaceDatabase faceDatabase)
    {
        return faceDatabaseMapper.selectFaceDatabaseList(faceDatabase);
    }

    /**
     * 新增人脸库
     * 
     * @param faceDatabase 人脸库
     * @return 结果
     */
    @Override
    public int insertFaceDatabase(FaceDatabase faceDatabase)
    {
        return faceDatabaseMapper.insertFaceDatabase(faceDatabase);
    }

    /**
     * 修改人脸库
     * 
     * @param faceDatabase 人脸库
     * @return 结果
     */
    @Override
    public int updateFaceDatabase(FaceDatabase faceDatabase)
    {
        return faceDatabaseMapper.updateFaceDatabase(faceDatabase);
    }

    /**
     * 批量删除人脸库
     * 
     * @param ids 需要删除的人脸库主键
     * @return 结果
     */
    @Override
    public int deleteFaceDatabaseByIds(Long[] ids)
    {
        return faceDatabaseMapper.deleteFaceDatabaseByIds(ids);
    }

    /**
     * 删除人脸库信息
     * 
     * @param id 人脸库主键
     * @return 结果
     */
    @Override
    public int deleteFaceDatabaseById(Long id)
    {
        return faceDatabaseMapper.deleteFaceDatabaseById(id);
    }
}
